home *** CD-ROM | disk | FTP | other *** search
XSetup plugin | 1999-09-25 | 1.9 KB | 74 lines |
- "FILE"="Xteq Systems X-Setup Plugin 5.0"
- "TYPE"="7"
- "COUNT"="3"
- "UIPATH"="System\Windows 95/98 Boot Options"
- "NAME"="Advanced Options (Win 98)"
- "VERSION"="1.12"
- "LANGUAGE"="VBScript"
- "TEXT 1"="Disable "Double Buffering""
- "TEXT 2"="Enable "Double Buffering" only if needed"
- "TEXT 3"="ALWAYS enable "Double Buffering""
- "DESCRIPTION 1"="Double Buffering doubles the default buffer size of Win98's use of the hard drive and results in enhanced performance."
- "DESCRIPTION 2"="NOTE: Some of these items may not work on Windows 98 Second Edition."
- "AUTHOR"="Xteq Systems"
- "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
- "COMMENT 1"="For more information, go to http://www.xteq.com or write to TeXHeX@xteq.com."
- "COMMENT 2"="Thanks to CptSiskoX and Pierre Szwarc for their help!"
-
-
- 'Declaration of some constants
- sF="C:\MSDOS.SYS"
- sO="OPTIONS"
-
- 'Called when the Plugin is started
- Sub Plugin_Initialize
- If GetWinVer=3 then
- Call FileSetAttribute(sf,"S-")
- Call FileSetAttribute(sf,"R-")
- Call FileSetAttribute(sf,"H-")
-
- i=IniReadValue(sf,so,"DoubleBuffer")
- if i=0 then
- SetUIElement 1,true
- else
- if i=2 then
- SetUIElement 2,true
- else
- SetUIElement 3,true
- end if
- end if
-
- else
- Disable
- end if
- End Sub
-
- 'Called when the Plugin should validate the Data the user has entered
- Sub Plugin_CheckData(ElementIndex)
- End Sub
-
- 'Called when the Plugin should apply the changes
- Sub Plugin_Apply(ElementIndex,ElementSubIndex)
- if GetUIElement(1)=true then
- i=0
- else
- if GetUIElement(2)=true then
- i=2
- else
- i=1
- end if
- end if
-
- Call IniWriteValue(sf,so,"DoubleBuffer",i)
-
-
- Call Restart()
- End Sub
-
- 'Called when the Plugin is about to be removed from memory
- Sub Plugin_Terminate
- Call FileSetAttribute("C:\MSDOS.SYS","S+")
- Call FileSetAttribute("C:\MSDOS.SYS","R+")
- Call FileSetAttribute("C:\MSDOS.SYS","H+")
- End Sub
-